<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>给prototype赋值</title>
</head>
<body>
        <script>
            function person() {
                this. name = 'frank'
            }
            person.prototype.xx = function () {

            };
            person.prototype.yy = 'yy';
            var p = new person();
            console.log(p);
            console.log(p.__proto__);
            console.log(p.__proto__.__proto__);
            console.log(p.__proto__.__proto__.__proto__);
        </script>
</body>
</html>